import instance from '@/utils/request'
// type
import type { CreateOrder, OrderList } from './type/order'
/**
 * 创建订单
 * clientName 客户改名
 */
export function addOrder(data: CreateOrder) {
  instance.request({
    url: '/createOrder',
    method: 'post',
    data,
  })
}

/**
 * 创建订单
 * clientName 客户改名
 */
export function orderList(data: OrderList) {
  instance.request({
    url: '/createOrder',
    method: 'post',
    data,
  })
}
